package com.ruoyi.fztz.xmgjbcx.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.fztz.clxhtb.service.IClxhtbService;
import com.ruoyi.fztz.lstb.xmls.vo.YbFyVo;
import com.ruoyi.fztz.xmgjbcx.service.IXmgjbService;
import com.ruoyi.fztz.xmgjbcx.vo.XmgjbVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 项目归集表Controller
 *
 * @author huacai
 * @date 2024-11-25
 */
@RestController
@RequestMapping("/fztz/xmgjb")
public class XmgjbController extends BaseController {
    @Resource
    private IXmgjbService xmgjbService;

    /**
     * 查询项目归集表
     * @param xmsbId 项目申报ID
     * @param nd 年度
     * @param gjYf 归集月份
     * @return 项目归集表
     */
    @GetMapping(value = "/selectXmgjbList")
    public AjaxResult selectXmgjbList(Integer xmsbId, String nd, String gjYf) {
        XmgjbVo xmgjbVo = new XmgjbVo();
        xmgjbVo.setXmsbId(xmsbId);
        xmgjbVo.setNd(nd);
        xmgjbVo.setGjYf(gjYf);
        return AjaxResult.success(xmgjbService.selectXmgjbList(xmgjbVo));
    }

}
